package net.jumpengine;

import javafx.application.Application;
import javafx.stage.Stage;
import net.jumpengine.Manager;
import net.jumpengine.enume.GameState;
import net.jumpengine.event.InputEvent;
import net.jumpengine.event.MouseEvent;
import net.jumpengine.event.RunningStateEvent;

public class Main extends Application{

	@Override
	public void start(Stage stage) throws Exception {
		Manager.getLog().setLevel(2);
		
		Manager.getEventManager().addInputEvent(GameState.running,new InputEvent());
		Manager.getEventManager().addMouseEvent(GameState.running, new MouseEvent());
		Manager.getEventManager().addStateEvent(GameState.running, new RunningStateEvent());
		
		Manager.init(stage,GameState.running,1146,717,25);
	}
	
	public static void main(String[] args) {
		launch(args);
	}
}
